﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login"MasterPageFile="~/Login.master" %>
<asp:Content ContentPlaceHolderID="l_style" runat="server">
    <link href="Styles/login.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            //验证用户名
            $("#holder_email").blur(function () {
                if ($("#holder_email").val() == "") {
                    $("#holder_email").val("用户名不能为空");
                }
                else {
                    $.ajax({
                        type: "POST",
                        url: "Server.aspx?name=" + $("input[id=holder_email]").val(),
                        success: function (data) {
                            $("#holder_email").val(data);
                        }
                    });
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ContentPlaceHolderID="holder" runat="server">

<div class="apply">
	<div class="regbox"><a href="reg.aspx" class="registbutton" style="">10 秒注册</a></div>
	<div class="desc">用户登录</div>
	<form onsubmit="return submitCheck(this);" method="post" runat="server">
		<div class="tip"></div>
		<div class="regrow">邮箱：<asp:TextBox value="" name="email" class="itext" id="email" runat="server"></asp:TextBox></div>
		<div class="regrow">密码：<asp:TextBox value="" name="passwd" id="password" class="itext" runat="server" TextMode="Password"></asp:TextBox></div>
		<div class="regrow2">
            <asp:Button ID="Button1" class="ibutton" runat="server" Text="登录" 
                onclick="Button1_Click" /><a href="forgetpw.aspx" class="forgetpw">忘记密码</a> </div>
	</form>
</div>
</asp:Content>